Full Key Value Cache Repo
open class FullKeyValueCacheRepo<Key, Value>( parentRepo: KeyValueRepo<Key, Value>, kvCache: FullKVCache<Key, Value>, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)) : FullWriteKeyValueCacheRepo<Key, Value> , KeyValueRepo<Key, Value> , ReadKeyValueRepo<Key, Value>
Content copied to clipboard
Constructors
Link copied to clipboard
fun <Key, Value> FullKeyValueCacheRepo( parentRepo: KeyValueRepo<Key, Value>, kvCache: FullKVCache<Key, Value>, scope: CoroutineScope = CoroutineScope(Dispatchers.Default))
Content copied to clipboard
Functions
Link copied to clipboard
By default, will remove all the data of current repo using doAllWithCurrentPaging, keys and unset
Link copied to clipboard
open suspend override fun keys(pagination: Pagination, reversed: Boolean): PaginationResult<Key>
Content copied to clipboard
open suspend override fun keys( v: Value, pagination: Pagination, reversed: Boolean): PaginationResult<Key>
Content copied to clipboard
This method should use sorted by Keys search and take the PaginationResult. By default, it should use ascending sort for Keys
Link copied to clipboard
Link copied to clipboard
open suspend override fun values(pagination: Pagination, reversed: Boolean): PaginationResult<Value>
Content copied to clipboard
This method should use sorted by Keys search and take the PaginationResult. By default, it should use ascending sort for Keys
Properties
Link copied to clipboard
This flow must emit data each time when data by Key has been changed with set method or in any other way excluding cases of data removing
Link copied to clipboard
This flow must emit data each time when data by Key has been removed with unset/unsetWithValues methods or in any other way